# @Author: Eric Ito
# @Date: 1/26/2009
# Project Euler problem 10

"""
Find sum of primes below 2,000,000
"""

from util import isPrime

def main():
	i = 2
	sums = 0
	while i < 2000000:
		if isPrime(i):
			sums += i
		i += 1
	print sums
	
if __name__ == "__main__":
	main()